﻿using System;
using System.Text;
using System.Collections.Generic;
using System.Data;
using System.ComponentModel.DataAnnotations;
using BCCommon;

namespace BCDto.CRM.EnterpriseInfomation
{
    /// <summary>
    /// 企业信息
    /// </summary>
    public class EnterpriseInfomationRequestDto
    {
        /// <summary>
        /// 公司名称
        /// </summary>		
        [Display(Name = "公司名称")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [MaxLength(200, ErrorMessage = "{0} 长度应小于{1}")]
        public string CompanyName { get; set; }
        /// <summary>
        /// 法定代表人
        /// </summary>		
        [Display(Name = "法定代表人")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [MaxLength(20, ErrorMessage = "{0} 长度应小于{1}")]
        public string Corporation { get; set; }
        /// <summary>
        /// 注册资金
        /// </summary>		
        [Display(Name = "注册资金")]
        public decimal? RegisteredCapital { get; set; }
        /// <summary>
        /// 注册资金
        /// </summary>
        [Display(Name = "注册资金")]
        public string RegisteredCapitalStr { get; set; }
        /// <summary>
        /// 注册日期
        /// </summary>		
        [Display(Name = "注册日期")]
        [Required(ErrorMessage = "{0} 不应为空")]
        public DateTime RegisteredDate { get; set; }
        /// <summary>
        /// 经营状态
        /// </summary>		
        [Display(Name = "经营状态")]
        [MaxLength(20, ErrorMessage = "{0} 长度应小于{1}")]
        public string ManagementForms { get; set; }
        /// <summary>
        /// 省份名称
        /// </summary>		
        [Display(Name = "省份名称")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [MaxLength(50, ErrorMessage = "{0} 长度应小于{1}")]
        public string ProvinceName { get; set; }
        /// <summary>
        /// 城市名称
        /// </summary>		
        [Display(Name = "城市名称")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [MaxLength(30, ErrorMessage = "{0} 长度应小于{1}")]
        public string CityName { get; set; }
        /// <summary>
        /// 区县名称
        /// </summary>		
        [Display(Name = "区县名称")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [MaxLength(100, ErrorMessage = "{0} 长度应小于{1}")]
        public string CountyName { get; set; }
        /// <summary>
        /// 省份编码
        /// </summary>		
        [Display(Name = "省份编码")]
        [MaxLength(20, ErrorMessage = "{0} 长度应小于{1}")]
        public string ProvinceCode { get; set; }
        /// <summary>
        /// 城市编码
        /// </summary>		
        [Display(Name = "城市编码")]
        [MaxLength(20, ErrorMessage = "{0} 长度应小于{1}")]
        public string CityCode { get; set; }
        /// <summary>
        /// 区县编码
        /// </summary>		
        [Display(Name = "区县编码")]
        [MaxLength(20, ErrorMessage = "{0} 长度应小于{1}")]
        public string CountyCode { get; set; }
        /// <summary>
        /// 公司类型
        /// </summary>		
        [Display(Name = "公司类型")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [MaxLength(50, ErrorMessage = "{0} 长度应小于{1}")]
        public string CompanyType { get; set; }
        /// <summary>
        /// 社会统一代码
        /// </summary>		
        [Display(Name = "社会统一代码")]
        [Required(ErrorMessage = "{0} 不应为空")]
        [MaxLength(18, ErrorMessage = "{0} 长度应小于{1}")]
        public string SocialUniformCode { get; set; }
        /// <summary>
        /// 纳税人识别号
        /// </summary>		
        [Display(Name = "纳税人识别号")]
        [MaxLength(18, ErrorMessage = "{0} 长度应小于{1}")]
        public string TaxIdNumber { get; set; }
        /// <summary>
        /// 注册号
        /// </summary>		
        [Display(Name = "注册号")]
        [MaxLength(30, ErrorMessage = "{0} 长度应小于{1}")]
        public string RegisteredNo { get; set; }
        /// <summary>
        /// 组织机构代码
        /// </summary>		
        [Display(Name = "组织机构代码")]
        [MaxLength(30, ErrorMessage = "{0} 长度应小于{1}")]
        public string OrganizationCode { get; set; }
        /// <summary>
        /// 企业公示的联系电话
        /// </summary>		
        [Display(Name = "企业公示的联系电话")]
        [MaxLength(50, ErrorMessage = "{0} 长度应小于{1}")]
        public string PublicCompanyPhone { get; set; }
        /// <summary>
        /// 企业公示的联系电话更多
        /// </summary>		
        [Display(Name = "企业公示的联系电话更多")]
        [MaxLength(100, ErrorMessage = "{0} 长度应小于{1}")]
        public string PublicCompanyPhoneMore { get; set; }
        /// <summary>
        /// 参保人数
        /// </summary>		
        [Display(Name = "参保人数")]
        public int? InsuranceSchemeNumber { get; set; }
        /// <summary>
        /// 行业类别Id
        /// </summary>		
        [Display(Name = "行业类别Id")]
        public int? IndustryCategoryId { get; set; }
        /// <summary>
        /// 行业类别名称
        /// </summary>		
        [Display(Name = "行业类别名称")]
        [MaxLength(50, ErrorMessage = "{0} 长度应小于{1}")]
        public string IndustryCategoryName { get; set; }
        /// <summary>
        /// 企业公示的地址
        /// </summary>		
        [Display(Name = "企业公示的地址")]
        [MaxLength(100, ErrorMessage = "{0} 长度应小于{1}")]
        public string PublicCompanyAddress { get; set; }
        /// <summary>
        /// 企业公示的网址
        /// </summary>		
        [Display(Name = "企业公示的网址")]
        [MaxLength(200, ErrorMessage = "{0} 长度应小于{1}")]
        [RegularExpression(RegexPatterns.DOMAIN_NAME, ErrorMessage = "{0} 格式不正确")]
        public string PublicCompanyWebsite { get; set; }
        /// <summary>
        /// 企业公示的邮箱
        /// </summary>		
        [Display(Name = "企业公示的邮箱")]
        [MaxLength(200, ErrorMessage = "{0} 长度应小于{1}")]
        [RegularExpression(RegexPatterns.EMAIL, ErrorMessage = "{0} 格式不正确")]
        public string PublicCompanyEmail { get; set; }
        /// <summary>
        /// 经营范围
        /// </summary>		
        [Display(Name = "经营范围")]
        public string BusinessScope { get; set; }
    }
}
